package com.medical.service.impl;

import com.medical.mapper.DeviceMapper;
import com.medical.pojo.Device;
import com.medical.service.DeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DeviceServiceImpl  implements DeviceService {

    @Autowired
    private DeviceMapper deviceMapper;
    @Override
    public List<Device> findAll() {
        return deviceMapper.findAll();
    }

    @Override
    public Device getOne(Integer id) {
        return deviceMapper.getOne(id);
    }
}
